package com.wanxi.dao;

import com.wanxi.model.NavModel;

import java.util.ArrayList;
import java.util.List;

public class NavDao {
    public List<NavModel> getNavModelList() {
        String[] hrefs = {"/home", "/company", "/news"};
        String[] names = {"网站首页", "公司介绍", "新闻展示"};
        List<NavModel> list = new ArrayList<>();
        for (int i = 0; i < hrefs.length; i++) {
            list.add(NavModel.builder()
                    .href(hrefs[i])
                    .name(names[i])
                    .build());
        }
        return list;
    }
}
